﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zen4SyncDashboard.DAL;
using System.Collections.ObjectModel;
using System.Threading.Tasks;

namespace Zen4SyncDashboard.ViewModel
{
    public class AllTestScenariosViewModel : BaseViewModel
    {

        #region - Bound Properties -

        public ObservableCollection<testScenario> TestScenarios { get; private set; }

        #endregion - Bound Properties -

        #region - Commands -

        #endregion - Commands -

        public AllTestScenariosViewModel()
        {
            InitializeBoundProperties();
            InitializeCommands();
        }        

        #region - Initialization Methods -

        private void InitializeBoundProperties()
        {
            Task.Factory
                .StartNew(() =>
                {
                    base.SetWorkStatus("Fetching Test Scenarios...");
                    TestScenarios = Zen4SyncModel.TestScenario.GetAll();
                    OnPropertyChanged("TestScenarios");


                    base.SetWorkStatus(false);
                });
        }

        private void InitializeCommands()
        {
            
        }           

        #endregion - Initialization Methods -

        #region - DAL Methods -

        

        #endregion - DAL Methods -
    }
}
